﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BeamRayInteractive : MonoBehaviour {
    public BeamRay hitRay;


    public void AssignBeamRay(BeamRay ray)
    {
        hitRay = ray;
    }

    public void Update()
    {
        if(hitRay!=null && hitRay.hitObject!=gameObject)
        {
            hitRay = null;
        }
    }
}
